import "./css/index.css"
import "./css/index.scss"
import "bootstrap/dist/css/bootstrap.css"
import Vue from 'vue'
import App from './App.vue'

import Vuetify from 'vuetify'
import '@mdi/font/css/materialdesignicons.css'
import 'material-design-icons-iconfont/dist/material-design-icons.css'
import 'vuetify/dist/vuetify.min.css'
Vue.use(Vuetify, {
    iconfont: ['mdi','md']
})

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

import VuePreview from 'vue-preview'
// 安装缩略图插件
Vue.use(VuePreview)
// require('es6-promise').polyfill()
// import axios from 'axios'
// axios.defaults.baseURL = 'http://www.liulongbin.top:3005';
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
// axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';


//导入路由的包
import VueRouter from 'vue-router'
//安装路由
Vue.use(VueRouter)
//导入公共数据
import store from './store/index'

//按需导入 Mint-UI 中的组件
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//导入mui样式
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

//导入格式化时间的插件
import moment from 'moment'
//定义全局的过滤器
Vue.filter('dateFormat',function (dataStr, pattern= 'YYYY-MM-DD hh:mm:ss') {
   return moment(dataStr).format(pattern)
})

//导入vue-resource
import VueResource from 'vue-resource'
//安装 vue-resource
Vue.use(VueResource)
//配置全局请求根路径
Vue.http.options.root = 'http://www.liulongbin.top:3005'
Vue.http.options.emulateJSON = true


//导入路由
import router from './router'

var vm = new Vue({
    el: '#app',
    data: {
        msg: "haha"
    },
    render: c => c(App),
    router,
    store
})
